<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="css/bootstrap.min.css">
    <style>
        body {
            background-color: #eeeeee;
        }
        .login-panel {
            margin-top: 100px;
        }
    </style>
</head>
<body>
<div class="container">
    <div class="row">
        <div class="col-xs-6 col-xs-push-3 login-panel">
            <div class="panel panel-primary">
                <div class="panel-heading">
                    <h3 class="panel-title">用户登录</h3>
                </div>
                <div class="panel-body">

                    <p class="alert-danger">
                        ${param.code == 'error' ? '用户名或者密码错误' : ''}
                    </p>

                    <form action="login" method="post">
                        <div class="form-group">
                            <label for="username">用户名</label>
                            <input class="form-control" autocomplete="off" id="username" name="username">
                        </div>
                        <div class="form-group">
                            <label for="password">密　码</label>
                            <input type="password" class="form-control" id="password" name="password">
                        </div>
                        <div class="form-group">
                            <input type="checkbox" name="rememberMe" value="rememberMe"> 记住我
                        </div>
                        <div class="form-group">
                            <button class="btn btn-block btn-primary">登录</button>
                        </div>
                    </form>
                </div>
            </div>

        </div>
    </div>
</div>
</body>
</html>